package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProduct;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProductExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsProductMapper {
    long countByExample(DirectMailGoodsProductExample example);

    int deleteByExample(DirectMailGoodsProductExample example);

    int deleteByPrimaryKey(Integer directMailProductId);

    int insert(DirectMailGoodsProduct record);

    int insertSelective(@Param("record") DirectMailGoodsProduct record, @Param("selective") DirectMailGoodsProduct.Column ... selective);

    DirectMailGoodsProduct selectOneByExample(DirectMailGoodsProductExample example);

    List<DirectMailGoodsProduct> selectByExample(DirectMailGoodsProductExample example);

    DirectMailGoodsProduct selectByPrimaryKey(Integer directMailProductId);

    DirectMailGoodsProduct selectByPrimaryKeyWithLogicalDelete(@Param("directMailProductId") Integer directMailProductId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsProduct record, @Param("example") DirectMailGoodsProductExample example, @Param("selective") DirectMailGoodsProduct.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsProduct record, @Param("example") DirectMailGoodsProductExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsProduct record, @Param("selective") DirectMailGoodsProduct.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsProduct record);

    int batchInsert(@Param("list") List<DirectMailGoodsProduct> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsProduct> list, @Param("selective") DirectMailGoodsProduct.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsProductExample example);

    int logicalDeleteByPrimaryKey(Integer directMailProductId);
}